*Variable Creation for Odesa Paper


*DV: WHO DID THE KILLING IN ODESA?*
*1 = pro-russians-did-it, 2 = pro-Ukrainians did it, 3 = responses that are neutral with respect to the first two narratives. V54othcod is a hand-coding by Henry Hale and Oxana Shevel of substantive responses that fall into the category of “Other” on V54. Those 11 respondents who responded “other” (V54=94) but did not name anything or anyone when asked what “other” meant (thus being missing values in V54othcod) are coded as “neutral.”*
generate odwhodiditx3=1 if V54==1
replace odwhodiditx3=1 if V54==2
replace odwhodiditx3=2 if V54==3
replace odwhodiditx3=2 if V54==4
replace odwhodiditx3=2 if V54==5
replace odwhodiditx3=3 if V54==95
replace odwhodiditx3=3 if V54==96
replace odwhodiditx3=3 if V54==97
replace odwhodiditx3=3 if V54==98
replace odwhodiditx3=V54othcod if V54==94
replace odwhodiditx3=3 if odwhodiditx3==.


*Demographics
generate age05 = Vage_years
recode V58 (1=0) (2=1), gen(female)
generate commsize=Va14
recode V61 (1=1) (2=1) (3=2) (4=3) (5=4) (6=5) (7=6) (8=6) (97=.) (98=.), gen(educ05)

*Geographic place: Donbas, Galica, Odesa
recode Va13 (7=1) (13=1), gen(donbas)
replace donbas=0 if donbas~=1
recode Va13 (20=1) (11=1) (14=1), gen(galicia)
replace galicia=0 if galicia~=1
generate odesa=1 if Va13==16
replace odesa=0 if odesa==.

*Language of comfortable use
recode Vlang (1=0) (2=1) (3=0) (4=0) (5=0) (6=0), gen(rulangsvy05)
recode Vlang (1=1) (2=0) (3=0) (4=0) (5=0) (6=0), gen(uklangsvy05)

*Nationality
recode V64 (1=1) (2=0) (3=0) (7=0) (8=0) (.=0), gen(runats05)
recode V64 (1=0) (2=1) (3=0) (7=0) (8=0) (.=0), gen(uknats05)

*Orthodox Church - Moscow Patriarchate
generate orthmos05=1 if V73==2
replace orthmos05=0 if orthmos05==.

*Orthodox Church - Kyiv Patriarchate
generate orthkyiv05=1 if V73==1
replace orthkyiv05=0 if orthkyiv05==.

*Protest participation
generate maidan05=1 if V35_1==2 | V35_1==3 | V35_3==2 | V35_3==3
replace maidan05=0 if maidan05==.

generate antimaidan05=1 if V35_2==2 | V35_2==3 | V35_4==2 | V35_4==3 | V35_5==2 | V35_5==3
replace antimaidan05=0 if antimaidan05==.

*PARTISANSHIP: naming the party on question V13text (party member) or V16text or V19text (the usual my party series of questions). Respondents naming two parties are counted for neither party. Variables are created for the biggest parties, with at least 1% of respondents as partisans.
generate tpbat05=1 if V13text=="Batkivshchyna" | V16text=="Batkivshchyna" | V19text == "Batkivshchyna"
replace tpbat05=0 if tpbat05==. 
generate tppr05=1 if V13text=="Party of Regions" | V16text=="Party of Regions" | V19text == "Party of Regions"
replace tppr05=0 if tppr05==.

*Approval of Yatseniuk Performance as PM. This codes as 0 those who volunteer that he is not really/legitimately PM*
recode V20_1 (1=5) (2=4) (3=3) (4=2) (5=1) (6=0) (7=.) (8=.), gen(appyatspm05)

*Attitudes on regional language autonomy, EU, ATO
recode V57_5 (1=4) (2=3) (3=2) (4=1) (7=.) (8=.), gen(reglangaut05)
recode V48_4 (1=4) (2=3) (3=2) (4=1) (7=.) (8=.), gen(proeu05)
recode V57_7 (1=4) (2=3) (3=2) (4=1) (7=.) (8=.), gen(ato05)

*MEDIA*
generate uktv05=1 if V4_1==1 | V4_1==2 | V4_1==3 | V4_1==4 | V4_1==5 | V4_1==6
replace uktv05=0 if uktv05==.
generate rftv05=1 if V4_7==1
replace rftv05=0 if rftv05==.
generate notv05=1 if V1==2
replace notv05=0 if notv05==.
generate itv05=1 if V4_10==1
replace itv05=0 if itv05==.
generate odnoklas05=1 if V8_1==1
replace odnoklas05=0 if odnoklas05==.
generate vk05=1 if V8_2==1
replace vk05=0 if vk05==.
generate facebook05=1 if V8_3==1
replace facebook05=0 if facebook05==.

*Calculations for the frequency of watching Russian/Ukrainian TV used in robustness checks were made as follows. Note: this measure is not direct since only the frequency of TV new watching generally is recorded; the variables reflect the frequency of TV news watching among those who, respectively, say they watch Ukrainian and RussianTV.*
recode V3 (1=4) (2=3) (3=2) (4=1) (5=0), gen(tvfreq05)
replace tvfreq05=0 if V1==2
replace tvfreq05=. if V3==7
generate uktvfreq05=uktv05*tvfreq05
generate rftvfreq05=rftv05*tvfreq05





